package com.neu.flashmall.product.service;

import com.neu.flashmall.product.entity.PmsAttr;
import com.neu.flashmall.product.vo.AttrFilterVo;

import java.util.List;

public interface PmsAttrService {
    List<PmsAttr> getAllAttrByGroup(Integer groupId);

    String addAttr(PmsAttr pmsAttr);

    String updateAttr(PmsAttr pmsAttr);

    String deleteAttr(Long id);

    int deleteAllByGroup(Integer group);

    List<PmsAttr> selectAll();

    String changeSearchType(Long id,Integer now);

    String changeValueType(Long id,Integer now);

    String changeAttrType(Long id,Integer now);

    String changeEnable(Long id,Integer now);

    String changeShow(Long id,Integer now);

    int canDeleteAttrGroup(Long id);

    List<PmsAttr> getByCategoryId(Long categoryId);

    List<PmsAttr> getSkuAttrByCategoryId(Long categoryId);

    AttrFilterVo getAttrFilterVo(Long categoryId);
}
